﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using UnityEngine;

namespace SLAssetSystem
{
    public class JsonResAdapter : IResAdapter
    {
        public T TransformRes<T>(UnityEngine.Object origin) where T : UnityEngine.Object
        {
            string content = origin.ToString();
            JsonData data = new JsonData();
            data.Init(content);
            T temp = data as T;
            return temp;
        }
    }
}
